package com.blueocean_health.care.management.domain.ordervo;

import java.util.Calendar;
import java.util.Date;

import com.blueocean_health.care.management.common.base.em.TimeType;
import com.blueocean_health.care.management.common.base.time.TimeUtils;

/**
 * @author			作者:            zwg.BlueOcean
 * @date       			创建时间：2017年9月1日  上午9:32:05
 * @version  		版本号：    1.0*
 * @parameter  	* 
 * @since  			* 
 * @return  			*
 * @description	*	
 */
public class DepartmentReportVo {
	private String beginTime;
	private String endTime;
	private Integer department;
	private String serviceType;
	private int page;
	private int pageSize;
	public DepartmentReportVo(){
		this.page=1;
		this.pageSize=10;
	}
	
	public String getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public Integer getDepartment() {
		return department;
	}
	public void setDepartment(Integer department) {
		this.department = department;
	}
	
	public String getServiceType() {
		return serviceType;
	}

	public void setServiceType(String serviceType) {
		this.serviceType = serviceType;
	}

	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getEndTimeAddOneDay() {
		Date future = null;
		try {
			Calendar calendar = Calendar.getInstance();
			calendar.setTime(TimeUtils.getDateByString(endTime+" 00:00:00",TimeType.yyyy_MM_dd_HH_mm_ss));
			calendar.add(Calendar.DATE, 1);
			future = calendar.getTime();
		} catch (Exception e) {
			
		}
		return TimeUtils.getStringByDate(future, TimeType.yyyy_MM_dd_HH_mm_ss);
	}

	@Override
	public String toString() {
		return "DepartmentReportVo [beginTime=" + beginTime + ", endTime=" + endTime + ", department=" + department
				+ ", page=" + page + ", pageSize=" + pageSize + "]";
	}
	
}

